package cn.fintecher.gis.entity;


import cn.fintecher.gis.enums.LayerRelate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Entity
@Table(name = "layer_relation")
@Data
@ApiModel(value = "layer_relation", description = "图层类型关系")
public class LayerRelation extends BaseEntity {

    @ApiModelProperty(notes = "类型code")
    @Enumerated(EnumType.STRING)
    private LayerRelate type;

    @ApiModelProperty(notes = "类型名称")
    private String name;

    @ApiModelProperty(notes = "用于搜索")
    private String useType;

    @ApiModelProperty(notes = "图层code")
    private String layerCode;
}
